package org.agentsherpa.model;

/**
 * Exception with a drone is tries to move or is placed on another drone
 * 
 * @author iain
 */
public class CollisionException extends Exception {
    private static final long serialVersionUID = -6218100717229910538L;

    public CollisionException(Point location, Drone d) {
        super("Cannot move drone " + d + " to " + location);
        this.location = location;
    }

    public Point getLocation() {
        return location;
    }

    private Point location;
}
